<!doctype html>
<html>

	<head>
		<meta charset="UTF-8">
		<title>现场</title>
		<meta name="viewport" content="width=device-width,initial-scale=1,minimum-scale=1,maximum-scale=1,user-scalable=no" />
		<link href="../css/mui.min.css" rel="stylesheet" />
		<link rel="stylesheet" href="../css/own.css" />
		
	</head>

	<body style="background: #FFFFFF;font-size: 0.8rem;">
		<header class="mui-bar own-mui-bar-nav own-main-background-color ">
			<h1 class="mui-title">现场</h1>
		</header>
		<script type="text/javascript" src="../js/mui.min.js"></script>
		<script type="text/javascript" src="../js/jquery-1.7.2.min.js"></script>
		<script type="text/javascript" src="../js/common.js"></script>
	<script>
		
			window.addEventListener('newsId',function(event){ 
				 	var urls = event.detail.url;
				 	if(urls.indexOf('?nid=') != -1){
				 		urls = urls.split('?nid=')[0]+'?nid='+localStorage.getItem('node');
				 	}
					mui.init({
						  subpages:[{
						    url:urls,
						    id:'xc',
						    styles:{
						    	top: '44px',
								bottom: '0px',
						    }
						  }]
			           });
			        });
			     
		mui.plusReady(function() {
			var first = null;
			mui.back = function() {
				//首次按键，提示‘再按一次退出应用’
				if(!first) {
					first = new Date().getTime();
					mui.toast('再按一次退出应用');
					setTimeout(function() {
						first = null;
					}, 1000);
				} else {
					if(new Date().getTime() - first < 1000) {
						plus.runtime.quit();
					}
				}
			};

		});
	</script>
</body>
</html>